﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="KPDetail.aspx.cs" Inherits="WXYW.KPDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    RMA服务与申请--发票明细
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <div class="buttonHeader" align="right">
        <img src="image/operateicon/back_back.gif" alt="" />
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/ListKPHistory.aspx">返回</asp:HyperLink>
        <img src="image/operateicon/print.gif" alt="" />
        <a onclick="preview()">打印</a>
    </div>
    <!--startprint-->
    <table width="100%" cellspacing="0" border="1px" style="border-collapse: collapse">
        <tr style="height: 25px">
            <td style="width: 10%">
                RMA #
            </td>
            <td style="width: 30%">
                <asp:Label ID="rmaCodeLabel" runat="server" Text=""></asp:Label>
            </td>
            <td style="width: 10%">
                流水号
            </td>
            <td style="width: 30%">
                <asp:Label ID="runningNOLbl" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                公司/个人名称
            </td>
            <td>
                <asp:Label ID="companyNameLabel" runat="server" Text=""></asp:Label>
            </td>
            <td>
                报价日期
            </td>
            <td>
                <asp:Label ID="quatationDateTimeLbl" runat="server"></asp:Label>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                公司/个人地址
            </td>
            <td>
                <asp:Label ID="companyAddressLbl" runat="server" Text=""></asp:Label>
            </td>
            <td>
                收款日期
            </td>
            <td>
                <asp:Label ID="receiveMoneyDateTimeLbl" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                联系人
            </td>
            <td>
                <asp:Label ID="connectPersonLabel" runat="server" Text=""></asp:Label>
            </td>
            <td>
                联系传真
            </td>
            <td>
                <asp:Label ID="faxLbl" runat="server"></asp:Label>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                联系电话
            </td>
            <td>
                <asp:Label ID="phoneNumberLabel" runat="server" Text=""></asp:Label>
            </td>
            <td>
                电子邮件
            </td>
            <td>
                <asp:Label ID="emailLbl" runat="server"></asp:Label>
            </td>
        </tr>
        <tr style="height: 10px">
            <td colspan="4">
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:GridView ID="productGridView" runat="server" AutoGenerateColumns="False" Width="100%"
                    CssClass="tableList" OnRowDataBound="productGridView_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="IDLbl" runat="server"></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Width="5%" Wrap="False" />
                            <ItemStyle Width="5%" Wrap="False" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="产品类型">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ProductType.ProductTypeName") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("ProductType.ProductTypeName") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="序列号" DataField="ProductSerialNumber">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="收费价格" DataField="Cost">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="备注" DataField="Remark">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="收款日期">
                            <ItemTemplate>
                                <%=receiveMoneyDateTimeLbl.Text %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="开票日期">
                            <ItemTemplate>
                                <%#Convert.ToDateTime(Eval("ApplicationForm.KPDateTime")).ToString("yyyy-MM-dd") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="开票类型">
                            <ItemTemplate>
                                <%--<asp:DropDownList ID="KPTypeDDL" runat="server" Width="80px">
                                    <asp:ListItem Text="普票" Value="普票"></asp:ListItem>
                                    <asp:ListItem Text="增票" Value="增票"></asp:ListItem>
                                </asp:DropDownList>--%>
                                <%#Eval("KPType")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField Visible="False">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="ProductIDLbl" runat="server" Text='<%# Bind("ApplicationProductID") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
    <!--endprint-->
</asp:Content>
